Next, you need to tune these properties of the pager in the containing fragment or activity:
ViewPager vpPager = (ViewPager) view.findViewById(R.id.vpPager); vpPager.setClipToPadding(false); vpPager.setPageMargin(12); // Now setup the adapter as normal Finally, adjust the width inside the adapter: class MyPageAdapter : FragmentStatePagerAdapter { @Override public float getPageWidth (int position) { return 0.93f; } // ... }
Liked By
Write Answer
Set pages pre-view in ViewPager
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
13-Nov-2015